//
//  WSIdentifyResultViewController.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/1.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "WSIdentifyResultViewController.h"

@interface WSIdentifyResultViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *resultLabel;

@property (weak, nonatomic) IBOutlet UIButton *publishBtn;

@end

@implementation WSIdentifyResultViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSMutableAttributedString *attributeStr = [[NSMutableAttributedString alloc] initWithString:self.publishBtn.currentTitle];
    
    [attributeStr addAttribute:NSUnderlineStyleAttributeName value:@(NSUnderlineStyleSingle) range:NSMakeRange(0, attributeStr.length)];
    
    //设置字体颜色要这样
    [attributeStr addAttribute:NSForegroundColorAttributeName value:kThemeGreenColor  range:NSMakeRange(0,[attributeStr length])];
    
    //设置下划线颜色...
    [attributeStr addAttribute:NSUnderlineColorAttributeName value:kThemeGreenColor range:(NSRange){0,[attributeStr length]}];
    
    [self.publishBtn setAttributedTitle:attributeStr forState:UIControlStateNormal];

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
